cmake_minimum_required(VERSION 3.0)

function(fun arg1)
    set(${arg1} abc PARENT_SCOPE)
endfunction(fun)

fun(val)
message(${val})

# prints:
# abc
